home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / debug / Blowup.lha / source / global.h < prev    next >
C/C++ Source or Header  |  1998-04-18  |  2KB  |  89 lines

  1. /*
  2.  * $Id: global.h 1.2 1998/04/18 15:45:01 olsen Exp olsen $
  3.  *
  4.  * :ts=4
  5.  *
  6.  * Blowup -- Catches and displays task errors
  7.  *
  8.  * Written by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9.  * Public Domain
  10.  */
  11.  
  12. #ifndef _GLOBAL_H
  13. #define _GLOBAL_H 1
  14.  
  15. /******************************************************************************/
  16.  
  17. #ifndef _SYSTEM_HEADERS_H
  18. #include "system_headers.h"
  19. #endif    /* _SYSTEM_HEADERS_H */
  20.  
  21. /******************************************************************************/
  22.  
  23. #define MILLION 1000000
  24.  
  25. /******************************************************************************/
  26.  
  27. #define MAX_FILENAME_LEN 256
  28.  
  29. /******************************************************************************/
  30.  
  31. #define SIG_Stop    SIGBREAKF_CTRL_C
  32.  
  33. /******************************************************************************/
  34.  
  35. #ifdef __SASC
  36. #define FAR            __far
  37. #define ASM            __asm
  38. #define REG(x)        register __ ## x
  39. #endif    /* __SASC */
  40.  
  41. /******************************************************************************/
  42.  
  43. #define FLAG_IS_SET(v,f)    (((v) & (f)) != 0)
  44. #define FLAG_IS_CLEAR(v,f)    (((v) & (f)) == 0)
  45.  
  46. /******************************************************************************/
  47.  
  48. #define OK        (0)
  49. #define SAME    (0)
  50. #define NO        !
  51. #define NOT        !
  52. #define CANNOT    !
  53.  
  54. /******************************************************************************/
  55.  
  56. #define SUCCESS    (TRUE)
  57. #define FAILURE    (FALSE)
  58.  
  59. /******************************************************************************/
  60.  
  61. typedef STRPTR    KEY;
  62. typedef LONG *    NUMBER;
  63. typedef LONG    SWITCH;
  64.  
  65. /******************************************************************************/
  66.  
  67. #define PORT_MASK(p) (1UL << (p)->mp_SigBit)
  68.  
  69. /******************************************************************************/
  70.  
  71. #define NUM_ELEMENTS(t)    (sizeof(t) / sizeof(t[0]))
  72.  
  73. /******************************************************************************/
  74.  
  75. #include "data.h"
  76. #include "protos.h"
  77.  
  78. /******************************************************************************/
  79.  
  80. VOID kprintf(const STRPTR,...);
  81.  
  82. /******************************************************************************/
  83.  
  84. #include "Assert.h"
  85.  
  86. /******************************************************************************/
  87.  
  88. #endif    /* _GLOBAL_H */
  89.